package com.shenchuangit.wma;

import com.shenchuangit.wma.ui.MainFrame;

import javax.swing.*;

/**
 * 启动类
 *
 * @author dpf
 */
public class App {
    public static void main(String[] args) {
        final MainFrame mainFrame = new MainFrame();
        String lookAndFeel = UIManager.getSystemLookAndFeelClassName();
        try {
            UIManager.setLookAndFeel(lookAndFeel);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (UnsupportedLookAndFeelException e) {
            e.printStackTrace();
        }
        // 显示应用 GUI
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                mainFrame.init();
            }
        });
    }
}
